import { createApp } from 'vue'
import { createPinia } from 'pinia';
import { createPersistedState } from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router/index.js';
import renderEngine from './renderEngine/index.js'
import Directives from './directives/index.js'
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import './common.css';
import './custom.css';
import './addWinFn.js';
import './utils/px2rem.js'; // 如果有移动端
export const app = createApp(App);
app.use(createPinia().use(createPersistedState()));
app.use(ElementPlus, { locale: zhCn });
app.use(router);
app.use(renderEngine); // 全局挂载渲染引擎
app.use(Directives); // 全局挂载渲染引擎
app.mount('#app');
